package com.csun.cmny.provider.service;

import com.csun.cmny.provider.model.vo.*;

import java.util.List;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-12-09 17:03
 * @Description:
 */
public interface UacRpcService {

    /**
     * query opc user vo by user id
     *
     * @param userId    the user id
     *
     * @return  the opc user vo
     */
    OpcUserVo queryOpcUserVoByUserId(Long userId);

    /**
     * query language by group id
     *
     * @param groupId   the group id
     *
     * @return  the group language vo
     */
    GroupLanguageVo queryLanguageByGroupId(Long groupId);

    /**
     * 根据用户Id查询角色列表
     *
     * @param userId    user id
     *
     * @return
     */
    List<RpcRoleVo> queryRoleListByUserId(Long userId);

    /**
     * 查询机构列表
     *
     * @return
     */
    List<RpcGroupVo> queryGroupList();

    /**
     * 查询该机构及子机构信息
     *
     * @param groupId   the group id
     *
     * @return  the rpc group vo list.
     */
    List<GroupVo> queryGroupListByGroupId(Long groupId);

    List<GroupInforVo> getAllGroup(Long groupId);
}
